package ubadbtools.deadlockAnalyzer.scheduleRecords;

import ubadbtools.deadlockAnalyzer.ValidationException;


public abstract class ScheduleRecord
{
	protected String transaction;
	protected int timestamp;

	public String getTransaction() 
	{
		return transaction;
	}
	
	public int getTimestamp() 
	{
		return timestamp;
	}
	
	public void setTimestamp(int ts) 
	{
		timestamp=ts;
	}
	
	public String getItem() throws ValidationException
	{
		throw new ValidationException("Este record no tiene items");
	}
	
	public boolean isAbort()
	{
		return false;
	}
	
	public boolean isCommit()
	{
		return false;
	}
	
	public boolean isLock()
	{
		return false;
	}
	
	public boolean isRequestLock()
	{
		return false;
	}
	
	public boolean isStart()
	{
		return false;
	}
	
	public boolean isUnlock()
	{
		return false;
	}
}
